// $Id: loggersettings.cpp 68 2004-11-12 10:44:03Z jonas $
#include "loggersettings.h"
#include <sys/time.h>
#include <iostream>
#include <stdio.h>
using namespace std;

/**
 * @todo Write documentation
 */
/*LoggerSettings::LoggerSettings()
{
	//LogHandler::getInstance()->addLogger(this, "clock_tick");
}*/

/**
 * @todo Write documentation
 */
void LoggerSettings::eos_init_start(void *eos)
{
	m_eos = (Eos *) eos;
}

/**
 * @todo Write documentation
 */
void LoggerSettings::eos_simulate_start(void *eos)
{
	fstream fout;
	openFile(&fout, "simulation_settings.txt");
	fout << "Simulation settings (eos version " << VERSION << ")" << endl;

	fout << "Scenario name: " << m_eos->getScenario() << endl;
	fout << "Random seed: " << m_eos->getRandomSeed() << endl;
	fout << "Iteration count: " << m_eos->getIterationCount() << endl;
	fout << "Node count: " << m_eos->getNodeCount() << endl;
	fout << "Initial files: " << m_eos->getFileCount() << endl;
	fout << "File store limit: " << m_eos->getNodeFileStoreLimit() << endl;
	fout << "Routing table limit: " << m_eos->getNodeRoutingTableLimit() << endl;
	fout << "Request HTL: " << m_eos->getRequestHopsToLive() << endl;
	fout << "Insert HTL: " << m_eos->getInsertHopsToLive() << endl;
	fout << "Request probability: " << m_eos->getRequestProbability() << endl;
	fout << "Insert probability: " << m_eos->getInsertProbability() << endl;

	fout.close();
}

/**
 * @todo Write documentation
 */
void LoggerSettings::eos_simulate_stop(void *eos)
{
}
